home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / doors_1 / brainex1.zip / QEMM.DOC < prev    next >
Text File  |  1992-09-04  |  8KB  |  176 lines

  1. Experience has shown that problems with DESQview usually have nothing to do
  2. with DESQview and everything to do with QEMM.
  3.  
  4. The default QEMM config.sys line is "DEVICE=QEMM386.SYS RAM". If you are using
  5. this config.sys line, you are playing with fire. On every system configuration
  6. tested at Digital Dynamics, DESQview (or even just plain DOS) will eventually
  7. crash using this config.sys line.
  8.  
  9. The problem is that QEMM is using memory regions that other components of your
  10. systems are also trying to use. This is bad. QEMM may also not be using memory
  11. regions that are not in use and therefore you may not be getting all the
  12. available upper memory possible. This is important if you need to load TSRs,
  13. device drivers, or network drivers into high memory to leave as much DOS base
  14. memory as possible.
  15.  
  16. An example config.sys:
  17.  
  18.  1: shell=c:\dos\command.com /e:1024 /p
  19.  2: stacks=0,0
  20.  3: buffers=5
  21.  4: files=50
  22.  5: lastdrive=m
  23.  6: device=c:\dev\qemm386.sys ram x=b800-c7ff i=f000-f7ff i=fd00-fdff
  24.  7: device=c:\dev\loadhi.sys c:\dev\smartdrv.sys 1024
  25.  8: device=c:\dev\loadhi.sys c:\dev\ramdrive.sys 4096 256 512 /e
  26.  9: device=c:\dev\loadhi.sys c:\dev\ansi.sys
  27. 10: dos=high
  28.  
  29. Remember, this example config.sys will probably NOT work in your system. It
  30. does however work in one specific system. The right config.sys line for your
  31. system will need to be determined by you. Keep reading to find out how to make
  32. that determination.
  33.  
  34. Note line 6, where QEMM386.SYS is loaded. The extra parameters after "ram"
  35. are specifying that QEMM exclude (not use) the memory region B800h through
  36. C7FFh and that QEMM should include (use) the memory regions F200h through F2FFh
  37. and F400h through F6FFh.
  38.  
  39. The "x=b800-c7ff" part of the line is VERY IMPORTANT. Without this parameter,
  40. this particular system will eventually crash under DESQview or even DOS alone
  41. under some circumstances. The crash will manifest itself differently with
  42. different system configurations. It may give you a "QEMM protection violation"
  43. or "Invalid instruction", or "NO ROM BASIC - SYSTEM HALTED", or it just may
  44. suddenly freeze.
  45.  
  46. The "i=nnnn-nnnn" parameters in the line tell QEMM to include (use) these
  47. memory regions for more available high memory. You should NOT use the inclusion
  48. parameter unless you are positive that no component of your system will try
  49. to use that memory region (including your system BIOS).
  50.  
  51. There is a Quarterdeck program called "Optimize" that is supposed to figure
  52. what to include and what to exclude in your config.sys, but don't waste your
  53. time. We've run "Optimize" on over 10 different system configurations and when
  54. it didn't crash the system, it never produced a config.sys that wouldn't
  55. eventually crash.
  56.  
  57. So how do you figure what to include and exclude? By using the QEMM.COM utility
  58. with the "analysis" parameter. The first time you run "qemm analysis", you'll
  59. see something like this:
  60.  
  61. ╔═══════════════════════════════════╗
  62. ║     Area      Size      Status    ║
  63. ║ 0000 - C2FF   780K   OK           ║
  64. ║ C300 - C7FF    20K   Include      ║
  65. ║ C800 - EFFF   160K   OK           ║
  66. ║ F000 - F1FF     8K   Include      ║
  67. ║ F200 - F2FF     4K   OK           ║
  68. ║ F300 - F3FF     4K   Include      ║
  69. ║ F400 - F6FF    12K   OK           ║
  70. ║ F700 - F8FF     8K   Include      ║
  71. ║ F900 - FAFF     8K   OK           ║
  72. ║ FB00 - FBFF     4K   Include      ║
  73. ║ FC00 - FCFF     4K   OK           ║
  74. ║ FD00 - FDFF     4K   Include      ║
  75. ║ FE00 - FFFF     8K   OK           ║
  76. ╚═══════════════════════════════════╝
  77.  
  78. The regions with the status "OK" mean that QEMM is dealing with it correctly.
  79. It is either NOT using the region because another resource is using it or it
  80. is using the region and no other resource has tried to use it since you booted.
  81.  
  82. The regions with the status of "Include" mean that QEMM is not using the region
  83. and no other resource has tried to use it since you booted.
  84.  
  85. The regions with the status of "Exclude" (none listed above) mean that QEMM is
  86. using the region and another resource has tried to use that region at the same
  87. time. This region must be manually excluded with the "x=nnnn-nnnn" parameter
  88. on your config.sys line.
  89.  
  90. Now don't be fooled by all the "Include" regions above in that box. As you use
  91. the system, those regions will shrink, split, or disappear altogether. After
  92. executing "qemm analysis" (producing the above output) and then accessing a
  93. floppy drive, the "Include" regions already begin to disappear:
  94.  
  95. ╔═══════════════════════════════════╗
  96. ║     Area      Size      Status    ║
  97. ║ 0000 - C2FF   780K   OK           ║
  98. ║ C300 - C7FF    20K   Include      ║
  99. ║ C800 - EFFF   160K   OK           ║
  100. ║ F000 - F1FF     8K   Include      ║
  101. ║ F200 - F2FF     4K   OK           ║
  102. ║ F300 - F3FF     4K   Include      ║
  103. ║ F400 - F6FF    12K   OK           ║
  104. ║ F700 - F8FF     8K   Include      ║
  105. ║ F900 - FCFF    16K   OK           ║
  106. ║ FD00 - FDFF     4K   Include      ║
  107. ║ FE00 - FFFF     8K   OK           ║
  108. ╚═══════════════════════════════════╝
  109.  
  110. After switching into every available video mode and running "qemm analysis"
  111. again:
  112.  
  113. ╔═══════════════════════════════════╗
  114. ║     Area      Size      Status    ║
  115. ║ 0000 - C5FF   792K   OK           ║
  116. ║ C600 - C6FF     4K   Include      ║
  117. ║ C700 - EFFF   164K   OK           ║
  118. ║ F000 - F1FF     8K   Include      ║
  119. ║ F200 - F2FF     4K   OK           ║
  120. ║ F300 - F3FF     4K   Include      ║
  121. ║ F400 - F6FF    12K   OK           ║
  122. ║ F700 - F8FF     8K   Include      ║
  123. ║ F900 - FCFF    16K   OK           ║
  124. ║ FD00 - FDFF     4K   Include      ║
  125. ║ FE00 - FFFF     8K   OK           ║
  126. ╚═══════════════════════════════════╝
  127.  
  128. After typing "echo ^g" at the DOS prompt (^g stands for Ctrl-G) and then
  129. running "qemm analysis" again:
  130.  
  131. ╔═══════════════════════════════════╗
  132. ║     Area      Size      Status    ║
  133. ║ 0000 - C5FF   792K   OK           ║
  134. ║ C600 - C6FF     4K   Include      ║
  135. ║ C700 - EFFF   164K   OK           ║
  136. ║ F000 - F1FF     8K   Include      ║
  137. ║ F200 - F2FF     4K   OK           ║
  138. ║ F300 - F3FF     4K   Include      ║
  139. ║ F400 - F6FF    12K   OK           ║
  140. ║ F700 - F7FF     4K   Include      ║
  141. ║ F800 - FCFF    20K   OK           ║
  142. ║ FD00 - FDFF     4K   Include      ║
  143. ║ FE00 - FFFF     8K   OK           ║
  144. ╚═══════════════════════════════════╝
  145.  
  146. As you can see, just about every system function will effect the regions that
  147. QEMM thinks you can safely include. It is a good idea to run just above every
  148. application you can and access every device on your system before deciding
  149. that the information provided by "qemm analysis" may be accurate and usable.
  150.  
  151. If "qemm analysis" every reports a region with the status of "Exclude", do not
  152. question it. Immediately edit your config.sys excluding that region and reboot.
  153.  
  154. If, for example, "qemm analysis" reports:
  155.  
  156. ╔═══════════════════════════════════╗
  157. ║     Area      Size      Status    ║
  158. ║ 0000 - C5FF   792K   OK           ║
  159. ║ C600 - C6FF     4K   Include      ║
  160. ║ C700 - EFFF   164K   OK           ║
  161. ║ F000 - F1FF      8K   Exclude        ║
  162. ║ F200 - F2FF     4K   OK           ║
  163. ║ F300 - F3FF     4K   Include      ║
  164. ║ F400 - F6FF    12K   OK           ║
  165. ║ F700 - F7FF     4K   Include      ║
  166. ║ F800 - FCFF    20K   OK           ║
  167. ║ FD00 - FDFF     4K   Include      ║
  168. ║ FE00 - FFFF     8K   OK           ║
  169. ╚═══════════════════════════════════╝
  170.  
  171. Edit your config.sys file addding "x=f000-f1ff" at the end of your
  172. "device=qemm386.sys" line. Then reboot your system.
  173.  
  174.  
  175.  
  176.